import React, { Component } from 'react'

import withCopyright from './withCopyright'

// 装饰器模式，需要配置脚手架
@withCopyright
class AnotherCopy extends Component {
    render() {
        return (
            <div>
                another {this.props.name}
            </div>
        )
    }
}

export default AnotherCopy
// export default withCopyright(AnotherCopy)
